package cn.com.roy.thread.t4_1_15.awaituntil;

public class Run2 {
    public static void main(String[] args) {
        try {
            Myservice myservice = new Myservice();
            Thread a = new ThreadA(myservice);
            a.start();

            Thread.sleep(2000);

            Thread b = new ThreadB(myservice);
            b.start();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
